package mspbots.hubspot.client.core.contacts;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

/**
 * ContactCreateBody
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/8/14
 */
@Data
public class ContactCreateBody {

    @Valid
    @NotNull
    private List<ContactProperty> inputs;

    @Data
    static class ContactProperty {

        private String id;

        @NotNull
        private Map<String, String> properties;
    }
}
